package com.brillilab.service.core.plans;

import com.baomidou.mybatisplus.extension.service.IService;
import com.brillilab.common.entity.PageVo;
import com.brillilab.domain.po.plans.PlanComment;

import java.util.List;

/**
 * <p>
 * 计划评论 服务类
 * </p>
 *
 * @author zlb
 * @since 2019-09-11
 */
public interface IPlanCommentService extends IService<PlanComment> {
    PlanComment insert(PlanComment planComment);

    boolean updateById(PlanComment planComment);

    boolean deleteById(Long id);

    PlanComment selectById(Long id);

    /**
     * 获取成员Id在指定时间区间的计划列表
     * @param planLabMemberId 计划人成员ID
     * @param startTime
     * @param endTime
     * @return
     */
    @Deprecated
    List<PlanComment> getPlanCommentList(Long planLabMemberId, String startTime, String endTime);
    
    @Deprecated
	int getNoReadNum(Long planMemberId, String startDate, String endDate);
    
    @Deprecated
	void updateRead(Long planLabMemberId, String startTime, String endTime);

	int getUnreadNum(Long planMemberId);

	void updateRead(Long planMemberId);

	PageVo<PlanComment> commentPage(Long planMemberId, Integer pageNum, Integer pageSize);

	List<PlanComment> selectAllList();
}
